﻿#region copyright info
//------------------------------------------------------------------------------
// <copyright company="the9.com">
//     Copyright (c) 1999-2010 第九城市.  All rights reserved.
//     Contact:		MSN:zhouyu@cszi.com , QQ:478779122
//		Link:				http://www.the9.com
// </copyright>
//------------------------------------------------------------------------------
#endregion
using System;
using System.Collections.Generic;

namespace System
{

    /// <summary>
    /// 没有有输入参数，只有输出参数泛型委托。
    /// .Net3.5 里已实现Func。
    /// </summary>
    /// <typeparam name="TResult">返回的类型</typeparam>
    /// <returns></returns>
    public delegate TResult Func<TResult>();

    /// <summary>
    /// 定义一个有两个输入参数且无返回的委托
    /// </summary>
    public delegate void Action<T1, T2>(T1 arg1, T2 arg2);

    /// <summary>
    /// 即无输入，也无输出的委托
    /// </summary>
    public delegate void Action();

}
